package com.dsbj.wx.api.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@ConfigurationProperties
@Configuration
public class PropertyUtil {

	private static String appid;

	private static String appsecret;

	public static String getAppid() {
		return appid;
	}

	@Value("${wx.appid}")
	public void setAppid(String appid) {
		PropertyUtil.appid = appid;
	}

	public static String getAppsecret() {
		return appsecret;
	}

	@Value("${wx.appsecret}")
	public void setAppsecret(String appsecret) {
		PropertyUtil.appsecret = appsecret;
	}

}
